﻿<%@ Page Language="C#" AutoEventWireup="true" Theme="Default" CodeBehind="DaYinSJDC.aspx.cs" Inherits="Web.Pages.QuShui.DiXiaS._8.QiTaGL.DaYinSJDC" %>
<%-- 废弃 operate by gdj at 2017/6/18 --%>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>打印数据导出</title>
    <script src="/JS/AddEditCancel.js"></script>
    <script src="/JS/jquery.js"></script>
    <script type="text/javascript">
        var typenum = 1;
        //开始上传文件
        function Uploader_OnUploadStart() {
            //验证文件类型
            LoadPanel.Show();

        }
        var times = 0;

        function Uploader_OnFilesUploadComplete(args) {

            if (args.isValid) {
                if (parseInt(args.callbackData) < 0) {
                    alert('文件上传失败');
                    btnDaoRu.SetEnabled(false);
                }
                else {
                    btnDaoRu.SetEnabled(true);
                    txtPath.SetText(args.callbackData.split('|')[0]);
                    HidList.Set("path", args.callbackData.split('|')[1]);

                    return;
                }


            }
        }
        function BindCheck(type) {

            if (type == 1) {
                if (txtStartNo.GetText() != "" && isAllNum(txtEndNo.GetText())) {
                    BtnXZ.OnClick();
                }
            }
            else {
                if (txtStartNo1.GetText() != "") {
                    BtnXZ.OnClick();
                }
            }
        }
        function OpenAdd()
        {
            var url = "TeShuYH.aspx";
            openCenter(url, "600px", "400px");
        }
        function CheckSearch()
        {
            if (txtYear.GetText() == "" || isNaN(Number(txtYear.GetText())))
            {
                alert("请输入到账年月");
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" onsubmit="return CheckSearch()">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div>
                    <dx:ASPxLoadingPanel ID="ASPxLoadingPanel1" ClientInstanceName="LoadPanel" runat="server" ContainerElementID="gvList" Modal="true" Theme="Metropolis" ShowImage="false" Text="加载中"></dx:ASPxLoadingPanel>

                    <div class="tabletitle1" align="center">
                        打印数据导出
                    </div>
                    <table style="width: 100%">
                        <tr>
                            <td style="width: 90px" align="right">到账年月：
                            </td>
                            <td style="width: 150px">
                                <dx:ASPxTextBox ID="txtYear" Width="100%"  ClientInstanceName="txtYear" runat="server">
                                </dx:ASPxTextBox>
                                <dx:ASPxHiddenField ID="HidList" ClientInstanceName="HidList" runat="server"></dx:ASPxHiddenField>
                            </td>

                            <td style="width: 90px" align="right">类型：</td>
                            <td style="width: 150px">
                                <dx:ASPxComboBox ID="txtLX" ClientInstanceName="txtLX" AutoPostBack="true" OnSelectedIndexChanged="txtLX_SelectedIndexChanged" runat="server" Width="100%">
                                    <Items>
                                        <dx:ListEditItem Text="打印通知书" Value="0" />
                                        <dx:ListEditItem Text="打印到账账单" Value="1" />
                                        <dx:ListEditItem Text="打印非到账账单" Value="2" />  
                                        <dx:ListEditItem Text="用户账单" Value="3" />                                       
                                    </Items>
                                </dx:ASPxComboBox>

                            </td>
                            <td style="width: 90px" align="right" runat="server" id="TDQY" visible="false">区域：</td>
                            <td style="width: 150px">
                                <dx:ASPxComboBox ID="txtQY" OnSelectedIndexChanged="txtQY_SelectedIndexChanged" AutoPostBack="true" ClientInstanceName="txtQY" Visible="false" runat="server" Width="100%">
                                    <Items>
                                        <dx:ListEditItem Text="大陆" Value="0" />
                                        <dx:ListEditItem Text="崇明" Value="1" />
                                        <dx:ListEditItem Text="长兴" Value="2" />
                                        <dx:ListEditItem Text="横沙" Value="3" />
                                    </Items>
                                </dx:ASPxComboBox>

                            </td>
                            <td style="width: 5px"></td>
                            <td>
                                <dx:ASPxButton ID="btnChaKan" ClientInstanceName="btnChaKan" runat="server" Text="查询"  OnClick="btnChaKan_Click"
                                    UseSubmitBehavior="false">
                                   
                                </dx:ASPxButton>

                            </td>
                        </tr>

                    </table>

                    <div id="divList" align="center">
                        <div>
                            <dx:ASPxGridView ID="gvList"  SettingsBehavior-AllowSort="false" ClientInstanceName="gvList" runat="server" AutoGenerateColumns="True" KeyFieldName="用户号" Theme="Aqua1" Width="100%">
                               <Columns>
                                   <dx:GridViewDataTextColumn  Caption="查询数据" Width="100%"  >

                                   </dx:GridViewDataTextColumn>
                               </Columns>
                                <SettingsBehavior AllowSelectByRowClick="true" />
                                <Settings VerticalScrollableHeight="315" HorizontalScrollBarMode="Visible"  />
                                <ClientSideEvents Init="function(s,e){AdjustSize(240,gvList);}" />
                            </dx:ASPxGridView>
                        </div>
                        <div style="height: 3px;"></div>
                        <div style="text-align: right">
                            <table style="width: 100%">
                                <tr>
                                    <td style="width: 20%" runat="server" id="PageTotal">总共有：0条数据</td>

                                    <td style="width: 20%">总金额：
                                    </td>
                                    <td style="width: 20%">
                                        <dx:ASPxTextBox ID="txtMoney" ReadOnly="true" Width="100%" ClientInstanceName="txtEndNo" runat="server" MaxLength="15">
                                           </dx:ASPxTextBox>
                                    </td>


                                    <td style="width: 20%">
                                        <dx:ASPxButton ID="BtnTianJia" Visible="false" AutoPostBack="false" ClientInstanceName="BtnTianJia" runat="server" Text="添加查询特殊用户"
                                            UseSubmitBehavior="false">
                                            <ClientSideEvents Click="function(s,e){OpenAdd();}" />
                                        </dx:ASPxButton>
                                    </td>
                                    <td style="width: 20%">
                                        <dx:ASPxButton ID="BtnDaoCHu" ClientInstanceName="BtnDaoCHu" OnClick="BtnDaoCHu_Click" runat="server" Text="导出到"
                                            UseSubmitBehavior="false">
                                        </dx:ASPxButton>
                                    </td>

                                </tr>
                            </table>
                            <div style="display: none">
                                <%-- <dx:ASPxButton ID="BtnXZ" OnClick="BtnXZ_Click" ClientInstanceName="BtnXZ" runat="server" Text="预览"
                                    UseSubmitBehavior="false">
                                </dx:ASPxButton>--%>
                            </div>
                        </div>

                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
